home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-25 | 2.2 KB | 107 lines | [TEXT/CWIE] |
- // ==================================================
- // CRadioButton.cp
- // Copyright (C) 1996-1997 Mizutori Tetsuya
- // July 4, 1996; February 3, 1997.
- // ==================================================
- // All documents are pretty-printed in 10-point Geneva font.
-
- #include <UDrawingState.h>
-
- #include "touchMeConstants.h"
- #include "CRadioButton.h"
-
-
- // --------------------------------------------------
- // • CreateRadioButtonStream [static]
- // --------------------------------------------------
-
- CRadioButton *
- CRadioButton::CreateRadioButtonStream(
- LStream * inStream )
- {
- return new CRadioButton( inStream );
- }
-
-
- // --------------------------------------------------
- // • CRadioButton
- // --------------------------------------------------
-
- CRadioButton::CRadioButton()
- {
- }
-
-
- // --------------------------------------------------
- // • CRadioButton(SPaneInfo&, MessageT, Int32, ResIDT, Str255)
- // --------------------------------------------------
-
- CRadioButton::CRadioButton(
- const SPaneInfo & inPaneInfo,
- MessageT inValueMessage,
- Int32 inValue,
- ResIDT inTextTraitsID,
- Str255 inTitle )
- : LStdRadioButton( inPaneInfo, inValueMessage,
- inValue, inTextTraitsID, inTitle )
- {
- }
-
-
- // --------------------------------------------------
- // • CRadioButton(const CRadioButton&)
- // --------------------------------------------------
-
- CRadioButton::CRadioButton(
- const CRadioButton & inOriginal )
- : LStdRadioButton( inOriginal )
- {
- }
-
-
- // --------------------------------------------------
- // • CRadioButton(LStream*)
- // --------------------------------------------------
-
- CRadioButton::CRadioButton(
- LStream * inStream )
- : LStdRadioButton( inStream )
- {
- }
-
-
- // --------------------------------------------------
- // • ~CRadioButton
- // --------------------------------------------------
-
- CRadioButton::~CRadioButton()
- {
- }
-
- // --------------------------------------------------
- // • ListenToMessage
- // --------------------------------------------------
-
- void
- CRadioButton::ListenToMessage(
- MessageT inMessage,
- void * ioParam )
- {
- #pragma unused ( ioParam )
-
- switch ( inMessage ) {
-
- case msg_Main_CrCheckbox:
- case msg_Main_MdCheckbox:
- if ( IsEnabled() ) {
- Disable();
- } else {
- Enable();
- }
- break;
-
- }
- }
-
- // end of program
-